/*
 * Copyright 2009 Johnson Consulting Services
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * 
 */
package com.johnsoncs.gwt.widgets.samples.client.mock;

import java.io.Serializable;

/**
 * @author wilj
 *
 */
public class DbInitStatus implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private boolean initialized;
	private int percentComplete;

	protected DbInitStatus() {
		// just for rpc serialization
	}

	/**
	 * @param initialized
	 * @param percentComplete
	 */
	public DbInitStatus(final boolean initialized, final int percentComplete) {
		super();
		this.initialized = initialized;
		this.percentComplete = percentComplete;
	}

	/**
	 * @return the percentComplete
	 */
	public int getPercentComplete() {
		return percentComplete;
	}

	/**
	 * @return the initialized
	 */
	public boolean isInitialized() {
		return initialized;
	}

	/**
	 * @param initialized the initialized to set
	 */
	public void setInitialized(final boolean initialized) {
		this.initialized = initialized;
	}

	/**
	 * @param percentComplete the percentComplete to set
	 */
	public void setPercentComplete(final int percentComplete) {
		this.percentComplete = percentComplete;
	}

}
